package com.wy.bean;

import java.util.Objects;

public class User {
    private String username;
    private String loginTime;
    private String IP;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof User)) return false;
        User user = (User) o;
        return Objects.equals(username, user.username);
    }

    @Override
    public int hashCode() {
        return Objects.hash(username);
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(String loginTime) {
        this.loginTime = loginTime;
    }

    public String getIP() {
        return IP;
    }

    public void setIP(String IP) {
        this.IP = IP;
    }

    public User(String username, String loginTime, String IP) {
        this.username = username;
        this.loginTime = loginTime;
        this.IP = IP;
    }

    public User() {
    }
}
